package com_djm_2025_05_26.OOP;

public class MyDate {

    public int year;

    public int month;

    public int day;


    public String date(){

        return "" + year + "/" + month + "/" + day ;
    }

   //构造方法
    public MyDate(int year,int month,int day){
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public MyDate(){

    }

    @Override
    public String toString() {
        return "MyDate{" +
                "year=" + year +
                ", month=" + month +
                ", day=" + day +
                '}';
    }
}
